from flask import Flask
from applications.view.system import register_system_bps
from applications.view.user import register_user_bps
from applications.upload.upload_bp import upload_bp  # 导入上传蓝图
from applications.view.miniapp import miniapp_bps  # 导入小程序蓝图


# 注册子蓝图
def init_bps(app):
    register_system_bps(app)  # 后台系统
    register_user_bps(app)    # 前台用户系统
    miniapp_bps(app)          # 注册小程序蓝图
    app.register_blueprint(upload_bp)  # 注册上传蓝图
